package com.ww.util.hutool.date;

import cn.hutool.core.date.DateUtil;

public class HutoolDateUtilDemo {

    public static void main(String[] args) {
        String date1 = "2024-12-12";
        System.out.println(DateUtil.parse(date1));

        String date2 = "2024-12-12 10:24:00";
        System.out.println(DateUtil.parse(date2));
    }
}
